package com.aisino.mvpdesignproject2.http.api;

import com.aisino.mvpdesignproject2.bean.MyNewsBean;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ApiService<T> {

    /**
     * News Request Interface
     * top(头条，默认),shehui(社会),guonei(国内),guoji(国际),yule(娱乐),tiyu(体育)junshi(军事),keji(科技),caijing(财经),shishang(时尚)
     * @param type
     * @return
     */
    @GET("toutiao/index?key=51e2fe35389da90a4e5e52b15d0d77a1")
    Observable<MyNewsBean> getNewsList(@Query("type") String type);
}
